dangling pointer meaning in English
悬摆指针
悬挂指针
Examples
- There are two major memory - management hazards to avoid in non - garbage - collected languages : memory leaks and dangling pointers
在非垃圾收集语言中需要避免两个主要的内存管理危险:内存泄漏和悬空指针。 - To avoid dangling pointers the dangerous situation where a block of memory is freed but a pointer still references it , you must delete the object only after the last reference is released
为了避免悬空指针(一种危险的情况,即一块内存已经被释放了,而一个指针还在引用它) ,必须在最后的引用释放之后才删除对象。 - The well - known problems of dangling pointers and memory leaks simply do not occur in java programs . java programs can exhibit a form of memory leak , more accurately called unintentional object retention , but this is a different problem
著名的悬空指针和内存泄漏问题在java程序中再也不会发生了( java程序可能会出现某种形式的内存泄漏,更精确地说是非故意的对象保留,但是这是一个不同的问题) 。